package com.example.finallyjob.Controllers;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;

@ControllerAdvice
@ResponseBody
public class AdviceController {

    @ExceptionHandler(Exception.class)
    public String handle(Exception e){
        return "fail";
    }
}
